/*
Copyright (C) Ariff Ehsan, Abdul Hadi Fikri

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

/*  Author : Ariff Ehsan
 *           Abdul Hadi Fikri
 *  Date   : June 18, 2009
 */


#ifndef __SYSTEM_H__
#define __SYSTEM_H__


/**
 *  STANDARD C LIBRARY
 */
#include <stdio.h>
#include <anos_config.h>
/**
 *  SYSTEM TYPES
 */
#include <anos_error.h>
#include <anos_boolean.h>


/**
 *  Microcontroller
 */
#if defined (__AVR_ATmega16__)
#include <ports/atmega16/atmega16_hardware.h>

#elif defined (__AVR_ATmega644P__)
#include <ports/atmega644p/atmega644p_hardware.h>

#elif defined (__AVR_ATtiny85__)
#include <ports/attiny85/attiny85_hardware.h>

#endif


/**
 *  DEFAULT SYSTEM LIBRARY
 */
#include <task.h>
#include <timer.h>

/**
*Command
*/
	void SYSTEM_init(void);
	void SYSTEM_run(void);

/**
*Signal
*/
	void APP_booted(void);

#endif // __SYSTEM_H__
